google.load('visualization', '1.0', {'packages':['corechart']}); google.setOnLoadCallback(function(){ var data = new google.visualization.DataTable(); data.addColumn('string', '日'); data.addColumn('number', 'DL数'); data.addColumn('number', 'Googleセルラン'); data.addColumn('number', 'iOSセルラン'); data.addColumn({type:'string', role:'annotation'}); data.addColumn({type:'string', role:'annotationText'}); data.addRows([ ['2024-02-26',67901,null,null,null,null], ['2024-02-27',67916,null,null,null,null], ['2024-02-28',67939,null,null,null,null], ['2024-02-29',67949,null,null,null,null], ['2024-03-01',67965,null,null,null,null], ['2024-03-02',67977,null,null,null,null], ['2024-03-03',67993,null,null,null,null], ['2024-03-04',67993,null,null,null,null], ['2024-03-05',67993,null,null,null,null], ['2024-03-06',68042,null,null,null,null], ['2024-03-07',68056,null,null,null,null], ['2024-03-08',68070,null,null,null,null], ['2024-03-09',68089,null,null,null,null], ['2024-03-10',68098,null,null,null,null], ['2024-03-11',68117,null,null,null,null], ['2024-03-12',68131,null,null,null,null], ['2024-03-13',68147,null,null,null,null], ['2024-03-14',68160,null,null,null,null], ['2024-03-15',68160,null,null,null,null], ['2024-03-16',68193,null,null,null,null], ['2024-03-17',68205,null,null,null,null], ['2024-03-18',68241,null,null,null,null], ['2024-03-19',68290,null,null,null,null], ['2024-03-20',68316,null,null,null,null], ['2024-03-21',68342,null,null,null,null], ['2024-03-22',68361,null,null,null,null], ['2024-03-23',68373,null,null,null,null], ['2024-03-24',68373,null,null,null,null], ['2024-03-25',68400,null,null,null,null], ['2024-03-26',68429,null,null,null,null], ['2024-03-27',68450,null,null,null,null], ['2024-03-28',68472,null,null,null,null], ['2024-03-29',68502,null,null,null,null], ['2024-03-30',68502,null,null,null,null], ['2024-03-31',68502,null,null,null,null], ['2024-04-01',68502,null,null,null,null], ['2024-04-02',68502,null,null,null,null], ['2024-04-03',68502,null,null,null,null], ['2024-04-04',68615,null,null,null,null], ['2024-04-05',68631,null,null,null,null], ['2024-04-06',68662,null,null,null,null], ['2024-04-07',68676,null,null,null,null], ['2024-04-08',68709,null,null,null,null], ['2024-04-09',68738,null,null,null,null], ['2024-04-10',68753,null,null,null,null], ['2024-04-11',68753,null,null,null,null], ['2024-04-12',68767,null,null,null,null], ['2024-04-13',68785,null,null,null,null], ['2024-04-14',68796,null,null,null,null], ['2024-04-15',68820,null,null,null,null], ['2024-04-16',68841,null,null,null,null], ['2024-04-17',68849,null,null,null,null], ['2024-04-18',68862,null,null,null,null], ['2024-04-19',68883,null,null,null,null], ['2024-04-20',68896,null,null,null,null], ['2024-04-21',68905,null,null,null,null], ['2024-04-22',68936,null,null,null,null], ['2024-04-23',68949,null,null,null,null], ['2024-04-24',68962,null,null,null,null], ['2024-04-25',68974,null,null,null,null], ['2024-04-26',69000,null,null,null,null] ]); var options = { chartArea: {'width':'85%', 'height':'65%', 'left':60 }, 'pointSize': 3, legend: {position: 'top' }, vAxes:[ {direction:1}, {direction:-1,viewWindow:{min:0,max:0}} ], series: { 0:{ type: 'bars', color: 'skyblue', targetAxisIndex: 0, }, 1:{ type: 'line', color: 'seagreen', targetAxisIndex: 1, }, 2:{ type: 'line', color: 'red', targetAxisIndex: 1, }, }, tooltip: { trigger: 'both' }, focusTarget: 'category', colors:['#2980b9','#e74c3c'] }; var chart = new google.visualization.ComboChart(document.getElementById('graphField')); chart.draw(data, options); google.visualization.events.addListener(chart, 'click', function() { if(chart.getSelection()[0]){ chart.setSelection(null) } }); });